﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Person_Exchange_View.aspx.cs" Inherits="JKF.Web.Points.Person_Exchange_View" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
        <%= RegScript("~/js/jquery.1.5.js")%>
        <%=RegScript("~/js/Common.js")%>
        <%=RegScript("~/js/jquery.json.js")%>
        <%=RegScript("~/js/jquery.nhis.js")%>
        <%=RegScript("~/js/jquery.rchis.js")%>
        <%=RegScript("~/js/jquery.validate.js")%>
        <%=RegScript("~/js/DatePicker/WdatePicker.js")%>
        <%=RegStyle("~/js/suggest/jquery.suggest.css")%>
        <%= RegScript("~/js/jquery-ui-custom.min.js")%>
    <script src="../../js/Uppop/tipswindown2.js"  type="text/javascript"></script>
        
    <link href="../../App_Themes/Theme2/Include.css"   rel="stylesheet" type="text/css" />  
    
    <script type="text/javascript" language="javascript">
        var isView = '<%=IsView%>'; //是否有浏览权限
        var AppPath = '<%=AppPath %>';
        var handler = AppPath + '/do/Points/Point_Exchange.do';
        var customerKey = '<%=P("customerKey") %>';//人员主键

        $(function () {


            bindPersonExchange();
        });

        function bindPersonExchange() {
            var tbody = $('#tb tbody');
            tbody.empty();

            $.ajax({ global: true, url: handler, data: { ActionName: "GetPersonExchange", customerKey: customerKey }, success: function (data) {
                if (data.error == true) {
                    ShowWarn(data.message);
                }
                else {
                    $.each(data.Tables[0].Rows, function (i, dr) {
                        tr = $("<tr key=" + dr.EXCHANGE_KEY + "></tr>").appendTo(tbody);
                        $('<td></td>').appendTo(tr).text(dr.EXCHANGE_NO);
                        $('<td></td>').appendTo(tr).text(dr.GIFTS);
                        $('<td></td>').appendTo(tr).text(dr.DEDUCT_POINT);
                        $('<td></td>').appendTo(tr).text(dr.MEMO);
                        $('<td></td>').appendTo(tr).text(dr.ACCOUNT);
                        $('<td></td>').appendTo(tr).text(dr.DATE_CREATE);
                    })
                }
            }, dataType: "json", type: "POST", async: true
          });
        }
    </script>  
</head>
<body id="modulebody">
      <div class="index_table">
        <table id="tb" class="common_table">
            <thead>
                <tr>
                    <th width="110px" ordertype="string">单号</th>
                    <th width="250px" ordertype="string">兑换礼品</th>
                    <th width="60px"  ordertype="string">扣除积分</th>
                    <th width="120px" ordertype="string">备注</th>
                    <th width="80px"  ordertype="string">操作员</th>
                    <th width="80px"  ordertype="string">兑换日期</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td colspan="10" style="text-align: center">点击搜索查看数据</td>
                </tr>
            </tbody>
        </table>
    </div>
</body>
</html>
